package com.liufh.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

/**
 * 与maven模式开发的区别：
 * 1）简化配置自动扫描
 * 2）不再通过AnnotationConfigApplicationContext或ClassPathXmlApplicationContext启动容器，直接通过启动类启动即可（通过注解将配置文件加载）
 */
@SpringBootApplication
@ImportResource("classpath:dubbo-consumer.xml")
public class SpringbootDubboConsumerApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootDubboConsumerApplication.class, args);
    }

}
